/*
 * Copyright (c) 2022.版权所有高金磊
 */

package 领扣算法.A简单题.将所有数字用字符替换;

public class Main {
    public String replaceDigits(String s) {
        char[] data=s.toCharArray();
        StringBuilder stringBuilder=new StringBuilder();
        for (int i = 0; i < data.length;) {
            stringBuilder.append(data[i]);
            if (i<data.length-1)
                stringBuilder.append((char)(data[i]+data[i+1]-'0'));
            i+=2;
        }
        return stringBuilder.toString();
    }
}
